home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / mscope / src / idle.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-30  |  860 b   |  48 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <winb.h>
  5. #include <te.h>
  6. #include <fntb.h>
  7. #include <gui.h>
  8. #include <egb.h>
  9. #include <guidbg.h>
  10.  
  11. //#include <eintm.h>
  12. #include <wgb.h>
  13. #include <mos.h>
  14.  
  15. #include <block.h>
  16.  
  17. extern char *guiEgbPtr ;
  18. extern char *buffer ;
  19. extern unsigned int dx,dy,xs,ys;
  20. extern FRAME pf;
  21.  
  22. EGB_BLOCK block ;
  23. EGB_BLOCK2 block2 ;
  24.  
  25. void userIdleTask(void)
  26. {
  27.     int btn,mx,my ;
  28.  
  29.     MOS_rdpos( &btn, &mx, &my );
  30.  
  31. //    if(pf.lupx<mx+32 && mx<pf.rdwx && pf.lupy<my+32 && my<pf.rdwy) return ;
  32.  
  33.     mx -= dx ;
  34.     my -= dy ;
  35.     block.x1 = mx ;
  36.     block.y1 = my ;
  37.     block.x2 = mx+xs ;
  38.     block.y2 = my+ys ;
  39.     EGB_writeMode( guiEgbPtr , 0 );    // 0 = PSET
  40.  
  41. //    MG_mosDisp(2);
  42.     EGB_getBlock(guiEgbPtr,(char *)&block);
  43.     WGB_putBlockZoom(guiEgbPtr,3,(char *)&block2);
  44. //    MG_mosDisp(3);
  45.  
  46.     return ;
  47. }
  48.